﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hotel.Domain
{
    /// <summary>
    /// 权限表
    /// </summary>
    public class Permission
    {

        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int PermissionId { get; set; }

        /// <summary>
        /// 权限名称
        /// </summary>
        public string PermissionName { get; set; }=string.Empty;

        /// <summary>
        /// 权限标题
        /// </summary>
        public string PermissionTitle { get; set; }

        /// <summary>
        /// 文件路由
        /// </summary>
        public string PermissionPath { get; set; }

        /// <summary>
        /// 路由路径
        /// </summary>
        public string PermissionAction { get; set; }

        /// <summary>
        /// 父级权限Id
        /// </summary>
        public int ParnentId { get; set; }

        /// <summary>
        /// 删除标志
        /// </summary>
        public int IsDel { get; set; } = 0;

        /// <summary>
        /// 状态
        /// </summary>
        public int Status { get; set; } = 1;

        /// <summary>
        /// 时间
        /// </summary>
        public DateTime CreateTime { get; set; } = DateTime.Now;
    }
}
